package com.sig.formes;

public class Point {

	public float x,y = 0f;
	public Point(){
	}
	public Point(float px,float py){
		x = px;
		y = py;
	}
	public float distanceTo(Point q) {
		Point p = this;
		float dx = p.x - q.x;
		float dy = p.y - q.y;
		return (float)Math.sqrt(dx*dx + dy*dy);
	}
	public String toString(){
		return "Point(x: "+x+" ; y: "+y+")";
	}
}
